/*
 * File: BMS.c
 *
 * Code generated for Simulink model 'BMS'.
 *
 * Model version                  : 1.4
 * Simulink Coder version         : 9.2 (R2019b) 18-Jul-2019
 * C/C++ source code generated on : Thu Jan  4 09:50:48 2024
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: STMicroelectronics->ST10/Super10
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#include "BMS.h"
#include "BMS_private.h"
#include "headfile.h"

/* Real-time model */
RT_MODEL_BMS_T BMS_M_;
RT_MODEL_BMS_T *const BMS_M = &BMS_M_;

/* Model step function */
void BMS_step(void)
{
  /* DataTypeConversion: '<Root>/Data Type Conversion' incorporates:
   *  Gain: '<Root>/Gain'
   *  Inport: '<Root>/Input'
   */
  set_A_PackVtg_us((uint16_T)((61440UL * get_P_PackVtg_us()) >> 12));
}

/* Model initialize function */
void BMS_initialize(void)
{
  /* (no initialization code required) */
}

/* Model terminate function */
void BMS_terminate(void)
{
  /* (no terminate code required) */
}

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
